<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="cp" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>购物+</title>
    <link href="${cp}/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="${cp}/static/css/style.css" rel="stylesheet">
    <script src="${cp}/static/js/jquery.min.js" type="text/javascript"></script>
    <script src="${cp}/static/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="${cp}/static/js/layer.js" type="text/javascript"></script>
</head>
<body>
<!--导航栏部分-->
<jsp:include page="include/header.jsp"/>

<!-- 中间内容 -->
<div class="container-fluid">
    <h1 class="title center">修改个人信息</h1>
    <br/>
    <div class="col-sm-offset-2 col-md-offest-2">

        <div class="form-horizontal">
          <!-- 表单输入 -->
            <!--这里进入修改controller-->
            <form action="/user_main/updateInfo.do">
                <div class="form-group">
                    <label for="inputUserName" class="col-sm-2 col-md-2 control-label">用户名</label>
                    <div class="col-sm-6 col-md-6">
                        <input type="text" class="form-control" name="username" id="inputUserName" value="${user.username}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-2 col-md-2 control-label">密码</label>
                    <div class="col-sm-6 col-md-6">
                        <input type="password" class="form-control" name="password" id="inputPassword" value="${user.password}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputEmail" class="col-sm-2 col-md-2 control-label">邮箱</label>
                    <div class="col-sm-6 col-md-6">
                        <input type="email" class="form-control" name="email" id="inputEmail" value="${user.email}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPhone" class="col-sm-2 col-md-2 control-label">手机号码</label>
                    <div class="col-sm-6 col-md-6">
                        <input type="text" class="form-control" name="phone" id="inputPhone" value="${user.phone}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputAddress" class="col-sm-2 col-md-2 control-label">地址</label>
                    <div class="col-sm-6 col-md-6">
                        <input type="text" class="form-control" name="address" id="inputAddress" value="${user.address}"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-6">
                        <button class="btn btn-lg btn-primary btn-block" type="submit">确认修改</button>
                    </div>
                </div>
            </form>
        </div>
        <br/>
    </div>
</div>
<!--尾部-->
<jsp:include page="include/foot.jsp"/>
</body>
</html>